getSelectedRows Method |
This method returns a collection of the rows selected.
Syntax
oRows = tableID.getSelectedRows()
Return Value
Returns a collection of rows that are selected in the grid.
Example
An example of how getSelectedRows() is used to get the list of rows selected from the table is as follows:
//sampleTable is the ID of the table var selectedRows = sampleTable.getSelectedRows(); //Navigate through each row for (var row in selectedRows) { //Alert the row element application.notify("This is row number " + row); application.notify("The innerHTML for the row" + row + " is : \n" + selectedRows[row].innerHTML); }